#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © 2016 lizongzhe 
#
# Distributed under terms of the MIT license.
from Task.models import Task

def load_jobs():
    for task in Task.objects.filter(live=True):
        task.create_job()
